-- GENERATED SPELL FOR [Sunscale Scytheclaw] --


function spell0_3256(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16829,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3256', 688, 1)
end

function spell1_3256(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3256', 0, 1)
end

function spell2_3256(pUnit, Event) --@Savage Rend,n/a--
pUnit:FullCastSpellOnTarget(53578,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3256', 15000, 1)
end

function spell3_3256(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_3256', 593, 1)
end

function Sorts_3256(pUnit, Event)
local choix_sorts_3256 = math.random(0, 3)
if choix_sorts_3256 == 0 then
pUnit:RegisterEvent('spell0_3256', 1, 1)
end
if choix_sorts_3256 == 1 then
pUnit:RegisterEvent('spell1_3256', 1, 1)
end
if choix_sorts_3256 == 2 then
pUnit:RegisterEvent('spell2_3256', 1, 1)
end
if choix_sorts_3256 == 3 then
pUnit:RegisterEvent('spell3_3256', 1, 1)
end
end

function mob3256_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3256', math.random(1500, 3000), 1)
end

function mob3256_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3256_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3256_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3256, 1, 'mob3256_Action')
RegisterUnitEvent(3256, 2, 'mob3256_Leave')
RegisterUnitEvent(3256, 3, 'mob3256_Kill')
RegisterUnitEvent(3256, 4, 'mob3256_Die')
